﻿@model Tau.ViewModels.CategoryList


<table border="1">
    <tr>
        <th></th>
        <th bgcolor="#3366cc">
            Category
        </th>
    </tr>

    @foreach (var category in Model.Categories) {
        <tr>
            <td>
                <a href="javascript:;" onclick="popupAddEdit(@category.CategoryId);" style="cursor:pointer">Edit</a> |
                <a href="javascript:;" onclick="deleteCategory(@category.CategoryId, '@category.CategoryName');" style="cursor:pointer">Delete</a>
            </td>
            <td>
                @category.CategoryName
            </td>
        </tr>
    }
</table>